#include "ExD3DThread.h"
#include <time.h>

ExD3DThread::ExD3DThread(QObject *parent)
	: QThread(parent), IsStop(false)
{
}

ExD3DThread::~ExD3DThread()
{
}

void ExD3DThread::Stop()
{
	IsStop = true;
}

void ExD3DThread::run()
{
	while (!IsStop)
	{
		clock_t StartTime = clock();
		emit RenderRun();
		clock_t UseTime = clock() - StartTime;

		if (UseTime < 15)
			QThread::msleep(15 - UseTime);
	}
}
